package com.s4j.struts.biz.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 辅助检查实体——免疫学指标
 * @author Administrator
 *
 */
@Entity
@Table(name="MG_SUPP_INSPECT")
public class MgSuppInspect {

	private Long inspectId;
	
	private BizMgSupplement supp;
	
	private Integer week;  //第几周末
	
	private String bun;
	
	private String alt;
	
	private String blood;	//血分析
	
	private String urine ;	//尿分析
	
	private String sp;	//血清钾
	
	private String crp;
	
	private String esr;
	
	private String ec;	//病原学检查（痰、尿、血、大便

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getInspectId() {
		return inspectId;
	}

	public void setInspectId(Long inspectId) {
		this.inspectId = inspectId;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="suppId")
	public BizMgSupplement getSupp() {
		return supp;
	}

	public void setSupp(BizMgSupplement supp) {
		this.supp = supp;
	}

	@Column(precision=5)
	public Integer getWeek() {
		return week;
	}

	public void setWeek(Integer week) {
		this.week = week;
	}

	@Column(length=50)
	public String getBun() {
		return bun;
	}

	public void setBun(String bun) {
		this.bun = bun;
	}

	@Column(length=50)
	public String getAlt() {
		return alt;
	}

	public void setAlt(String alt) {
		this.alt = alt;
	}

	@Column(length=50)
	public String getBlood() {
		return blood;
	}

	public void setBlood(String blood) {
		this.blood = blood;
	}

	@Column(length=50)
	public String getUrine() {
		return urine;
	}

	public void setUrine(String urine) {
		this.urine = urine;
	}

	@Column(length=50)
	public String getSp() {
		return sp;
	}

	public void setSp(String sp) {
		this.sp = sp;
	}

	@Column(length=50)
	public String getCrp() {
		return crp;
	}

	public void setCrp(String crp) {
		this.crp = crp;
	}

	@Column(length=50)
	public String getEsr() {
		return esr;
	}

	public void setEsr(String esr) {
		this.esr = esr;
	}

	@Column(length=50)
	public String getEc() {
		return ec;
	}

	public void setEc(String ec) {
		this.ec = ec;
	}
}
